#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QColor>
#include <QGridLayout>
#include "qrenderarea.h"
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QDialogButtonBox>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:

    void on_actionMy_dialog_triggered();

    void onDialogClosed(QColor *color, QString text, int diameter);

    void onSaveAs();

    void on_actionClose_triggered();

private:
    Ui::MainWindow *ui;
    QGridLayout *mainLayout;
    QRenderArea *renderArea;

    void openDialog();
};

#endif // MAINWINDOW_H
